package com.ccn.crm.service.impl;

import com.ccn.crm.mapper.salePdaMapper;
import com.ccn.crm.model.salePda;
import com.ccn.crm.service.ISalePda;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SalePdaServiceImpl implements ISalePda {

    @Autowired
    private salePdaMapper salePdaMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return salePdaMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(salePda record) {
        return salePdaMapper.insert(record);
    }

    @Override
    public salePda selectByPrimaryKey(Integer id) {
        return salePdaMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<salePda> selectAll() {
        return salePdaMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(salePda record) {
        return salePdaMapper.updateByPrimaryKey(record);
    }
}
